import request from '@/utils/request'
export default {
    addCategory(data:object) {
        return request({
            url: '/category/add',
            method: 'post',
            data: data
        })
    },
    editCategory(id:string,data:object) {
        return request({
            url: '/category/'+id,
            method: 'patch',
            data: data
        })
    },
     deleteCategory(id :string) {
        return request({
            url: '/category/'+id,
            method: 'delete',
        })
    }
}

